package com.dream.config;

import dev.langchain4j.community.model.dashscope.QwenStreamingChatModel;
import dev.langchain4j.model.chat.StreamingChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: 流式输出配置类
 * @author: LiMG
 * @create: 2025-07-21 23:34:52
 **/
@Configuration
public class StreamChatConfig {

    @Bean
    public StreamingChatModel streamingChatModel() {
        return QwenStreamingChatModel.builder()
                .apiKey(System.getenv("BAI_LIAN_KEY"))
                .modelName("qwen-max")
                .build();
    }

}
